<?php

require_once('functions/pageLoad.php');


if(isset($_GET['url'])){

	$sql = "SELECT name, title, description, content FROM content WHERE url = '".mysql_real_escape_string($_GET['url'])."'";
	$query=mysql_query( $sql ) or die ("Error in query: $sql . " . mysql_error());
	$rs=mysql_fetch_assoc($query);

$page_title = $rs['title'];
$page_description = $rs['description'];
$content = '<h1>'.$rs['name'].'</h1>'.$rs['content'];

}

include('includes/meta.php');
include('includes/header.php');
include('includes/navigation.php');

?>

<?php echo $content; ?>

<?php 

include('includes/rightColumn.php');
include('includes/footer.php');

?>